package com.codeplex.jtfscli.util;

import com.microsoft.tfs.core.clients.versioncontrol.OperationStatus;

public class Util {
	public static boolean isServerPath(final String path) {
		return path.startsWith("$");
	}

	public static String getOperationStatusString(final OperationStatus status) {
		switch (status.getValue()) {
		case 0:
			return "Conflicting";
		case 6:
			return "Deleting";
		case 4:
			return "Getting";
		case 5:
			return "Replacing";
		default:
			return "Getting";
		}
	}
}
